public class TestDemo {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        TreeNode root = binaryTree.createTree();

        binaryTree.preOrderTraversal(root);
        System.out.println();
        binaryTree.preOrderTraversalTwo(root);

        binaryTree.inOrderTraversal(root);
        System.out.println();
        binaryTree.inOrderTraversalTwo(root);

        binaryTree.postOrderTraversal(root);
        System.out.println();
        binaryTree.postOrderTraversalTwo(root);
    }
}
